#@front_layout()
	
#define css()
	
#end

#define main()
<div class="container">
	<form class="center" action="#(ctx)/user/reg" method="post" onsubmit="return validateReg();">
		账号：<input type="text" autocomplete="off" autofocus="autofocus" name="authUser.username" id="username"><br>
		密码：<input type="password" autocomplete="off" name="authUser.password" id="password"><br>
		昵称：<input type="text" autocomplete="off" name="authUser.nickname" id="nickname"><br>
		<input type="submit" id="regBtn" value="注册">
		<input type="reset" value="清空">
	</form>
</div>
#end

#define js()
<script>
	$("body").keypress(function(event){
		var key = event.which;
		if(key == "13"){
			$("#regBtn").click();
		}
	});
</script>
#end